import io

import qrcode


def generate_qr_code(content: str) -> bytes:
    img_bytes = io.BytesIO()
    img = qrcode.make(content, border=0)
    img.save(img_bytes)
    img_bytes.seek(0)
    return img_bytes.read()
